<?php

if($_SERVER['REQUEST_METHOD']=='POST'
	&& $_POST['submit']=='Save Entry'
	{
		// Include database credentials and connect to the database
		inlcude_once 'db.inc.php';
		$db = new PDO(DB_INFO, DB_USER, DB_PASS);
		
		// Continue processing information. . .
	}
	
	// If both conditions aren't met, sends the user back to the main page
	else 
	{
		header('Location: /admin.php');
		exit;
	}
	
	?>